const db = require('../config/db')
const {DataTypes} = require('sequelize');
const attributes = {
    id: {
        type: DataTypes.INTEGER,
        primaryKey: true,    // 主键
        autoIncrement: true,// 自动递增
        comment: 'id',
    },
    circle_content: {
        type: DataTypes.TEXT,
        comment: '内容',
        allowNull: false
    },
    circle_state: {
        type: DataTypes.INTEGER,
        comment: '状态',
        allowNull: true,
        default: 1,
    },
}


const PersonalCircleModel = db.define('personal_circle', attributes)


// PersonalCircleModel.sync()

module.exports = PersonalCircleModel
